package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//地址表
public class DeliveryAddress {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer uId;//用户id

    private Integer pId;//省id

    private Integer cId;//市id

    private Integer rId;//区id

    private String address;//详细地址

    @TableField(exist = false)
    private String provinceName;//省名

    @TableField(exist = false)
    private String cityName;//市名

    @TableField(exist = false)
    private String region;//区名
}